package com.zzyl.mapper;

import com.zzyl.entity.NursingPlan;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface NursingPlanMapper {

    @Select("select * from zzyl.nursing_plan")
    List<NursingPlan> selectAllNursingPlan();

    List<NursingPlan> selectPage(@Param("name") String name, @Param("status") Integer status);

    void insertNursingPlan(NursingPlan nursingPlan);

    @Delete("delete from zzyl.nursing_plan where id = #{id}")
    void deleteById(Long id);

    void updateStatusById(Long id, Integer status);

    NursingPlan selectById(Integer planId);

    void updateById(NursingPlan plan);
}
